package com.frogs.ucenter.dao.ibatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.ucenter.dao.TaskInfoDao;
import com.frogs.ucenter.entity.TaskInfo;
import com.frogs.ucenter.entity.TaskInfoExt;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("taskInfoDao")
public class TaskInfoDaoImpl extends BaseDaoIbatis<TaskInfo> implements TaskInfoDao {

    public TaskInfoDaoImpl() {
        super();
        setNameSpace( "task_info" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }
    
    @Override
	public List<TaskInfoExt> selectLeftJoinByMap(Map<String, Object> params) {
    	List<TaskInfoExt> list = getSqlMapClientTemplate().queryForList(this.getNameSpace() + ".selectLeftJoinByMap", params);
		return list;
	}
}